num = int(input())
s = ""
while num != 0:
    s = str(num % 2) + s
    num = num // 2
print(s)
